package com.love.marriage.userMembershipHistory.mapper;

import com.love.marriage.userMembershipHistory.entity.UserMembershipHistory;
import com.love.marriage.userMembershipHistory.vo.UserMembershipHistoryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.love.marriage.common.interfaces.permission.DataPermission;

/**
 * description:  用户会员历史记录表 mapper
 * author:       mybatisPlus
 * createDate:   2025-06-27 07:07:06
 * version:      1.0.0
 */
@Mapper
public interface UserMembershipHistoryMapper extends BaseMapper<UserMembershipHistory> {

    @DataPermission(table = "user_membership_history_t")
    Page<UserMembershipHistoryVo> getPage(Page<UserMembershipHistoryVo> page, @Param("userMembershipHistoryVo") UserMembershipHistoryVo userMembershipHistoryVo);

    UserMembershipHistoryVo queryUserMembershipHistory(@Param("id") Long id);
}
